package com.wenheng.Produce.impl;

import com.wenheng.Produce.ProducerSeckilling;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Auther: 文恒
 * @Date: 2021/3/25 - 03 - 25 -14:38
 * @Description:com.wenheng.Produce.impl
 * @version:1.0
 */
@Component
public class ProducerSeckillingImpl implements ProducerSeckilling {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Override
    public void sendMail(String queue, String id){
        rabbitTemplate.convertAndSend("myqueue",id);
    }
}
